Optimal. Leaf size=49 \[ -\frac{a \sin ^5(c+d x)}{5 d}+\frac{a \sin ^3(c+d x)}{3 d}-\frac{a \cos ^4(c+d x)}{4 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0811166, antiderivative size = 49, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {2834, 2565, 30, 2564, 14} \[ -\frac{a \sin ^5(c+d x)}{5 d}+\frac{a \sin ^3(c+d x)}{3 d}-\frac{a \cos ^4(c+d x)}{4 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2834
Rule 2565
Rule 30
Rule 2564
Rule 14
Rubi steps
\begin{align*} \int \cos ^3(c+d x) \sin (c+d x) (a+a \sin (c+d x)) \, dx &=a \int \cos ^3(c+d x) \sin (c+d x) \, dx+a \int \cos ^3(c+d x) \sin ^2(c+d x) \, dx\\ &=-\frac{a \operatorname{Subst}\left (\int x^3 \, dx,x,\cos (c+d x)\right )}{d}+\frac{a \operatorname{Subst}\left (\int x^2 \left (1-x^2\right ) \, dx,x,\sin (c+d x)\right )}{d}\\ &=-\frac{a \cos ^4(c+d x)}{4 d}+\frac{a \operatorname{Subst}\left (\int \left (x^2-x^4\right ) \, dx,x,\sin (c+d x)\right )}{d}\\ &=-\frac{a \cos ^4(c+d x)}{4 d}+\frac{a \sin ^3(c+d x)}{3 d}-\frac{a \sin ^5(c+d x)}{5 d}\\ \end{align*}
Mathematica [A] time = 0.099882, size = 58, normalized size = 1.18 \[ -\frac{a (-60 \sin (c+d x)+10 \sin (3 (c+d x))+6 \sin (5 (c+d x))+60 \cos (2 (c+d x))+15 \cos (4 (c+d x))+45)}{480 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.023, size = 54, normalized size = 1.1 \begin{align*}{\frac{1}{d} \left ( a \left ( -{\frac{\sin \left ( dx+c \right ) \left ( \cos \left ( dx+c \right ) \right ) ^{4}}{5}}+{\frac{ \left ( 2+ \left ( \cos \left ( dx+c \right ) \right ) ^{2} \right ) \sin \left ( dx+c \right ) }{15}} \right ) -{\frac{a \left ( \cos \left ( dx+c \right ) \right ) ^{4}}{4}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.968803, size = 68, normalized size = 1.39 \begin{align*} -\frac{12 \, a \sin \left (d x + c\right )^{5} + 15 \, a \sin \left (d x + c\right )^{4} - 20 \, a \sin \left (d x + c\right )^{3} - 30 \, a \sin \left (d x + c\right )^{2}}{60 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.75243, size = 127, normalized size = 2.59 \begin{align*} -\frac{15 \, a \cos \left (d x + c\right )^{4} + 4 \,{\left (3 \, a \cos \left (d x + c\right )^{4} - a \cos \left (d x + c\right )^{2} - 2 \, a\right )} \sin \left (d x + c\right )}{60 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 2.24027, size = 66, normalized size = 1.35 \begin{align*} \begin{cases} \frac{2 a \sin ^{5}{\left (c + d x \right )}}{15 d} + \frac{a \sin ^{3}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{3 d} - \frac{a \cos ^{4}{\left (c + d x \right )}}{4 d} & \text{for}\: d \neq 0 \\x \left (a \sin{\left (c \right )} + a\right ) \sin{\left (c \right )} \cos ^{3}{\left (c \right )} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.33475, size = 68, normalized size = 1.39 \begin{align*} -\frac{12 \, a \sin \left (d x + c\right )^{5} + 15 \, a \sin \left (d x + c\right )^{4} - 20 \, a \sin \left (d x + c\right )^{3} - 30 \, a \sin \left (d x + c\right )^{2}}{60 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]